import 'package:rxdart/rxdart.dart';

import '../../../base/basewidget/model/BaseModel.dart';

class projectModel extends BaseModel{

  BehaviorSubject<String> _dataObservable = BehaviorSubject();

  Stream<String> get dataStream => _dataObservable.stream;
/*
* */
  getTestData() {
    return _dataObservable.add("获得测试数据");
  }

  void dispose() {

    if (_dataObservable != null) {
      _dataObservable.close();
    }
    
    super.dispose();
  }
}